package com.nashuju.web.entity.sw;

import java.util.Date;

import org.durcframework.core.expression.annotation.ValueField;
import org.durcframework.core.support.SearchEasyUI;
import org.durcframework.core.util.DateUtil;


public class RUserSch extends SearchEasyUI{

    //根据时间进行搜索的部分
    private Date createdStartSch;
    private Date createdEndSch;

    @ValueField(column = "createdTime", equal = ">=")
    public Date getCreatedStartSch() {
        return createdStartSch;
    }

    public void setCreatedStartSch(Date createdStartSch) {
        this.createdStartSch = createdStartSch;
    }

    @ValueField(column = "createdTime", equal = "<")
    public Date getCreatedEndSch() {
        if (createdEndSch != null) {
            return DateUtil.getDateAfterDay(createdEndSch, 1);
        }
        return createdEndSch;
    }

    public void setCreatedEndSch(Date createdEndSch) {
        this.createdEndSch = createdEndSch;
    }


    private String usernameSch;
    private String passwordSch;
    private Date addTimeSch;
    private Date lastLoginDateSch;
    private Integer rolePropertySch;
    private String trueNameSch;
    private Integer idSch;
    private String companySch;
    private String positionSch;
    private String phoneSch;
    private String addressSch;
    private String qqSch;
    private String weixinSch;
    private String departmentSch;
    private String avatarSch;
    private String bundleIdSch;
    private Boolean isLoginSch;
    private String oldPwdSch;
    //add field
    private String statusSch;

    public void setUsernameSch(String usernameSch){
        this.usernameSch = usernameSch;
    }
    
    @ValueField(column = "username")
    public String getUsernameSch(){
        return this.usernameSch;
    }

    public void setPasswordSch(String passwordSch){
        this.passwordSch = passwordSch;
    }
    
    @ValueField(column = "password")
    public String getPasswordSch(){
        return this.passwordSch;
    }

    public void setAddTimeSch(Date addTimeSch){
        this.addTimeSch = addTimeSch;
    }
    
    @ValueField(column = "add_time")
    public Date getAddTimeSch(){
        return this.addTimeSch;
    }

    public void setLastLoginDateSch(Date lastLoginDateSch){
        this.lastLoginDateSch = lastLoginDateSch;
    }
    
    @ValueField(column = "last_login_date")
    public Date getLastLoginDateSch(){
        return this.lastLoginDateSch;
    }

    public void setRolePropertySch(Integer rolePropertySch){
        this.rolePropertySch = rolePropertySch;
    }
    
    @ValueField(column = "role_property")
    public Integer getRolePropertySch(){
        return this.rolePropertySch;
    }

    public void setTrueNameSch(String trueNameSch){
        this.trueNameSch = trueNameSch;
    }
    
    @ValueField(column = "true_name")
    public String getTrueNameSch(){
        return this.trueNameSch;
    }

    public void setIdSch(Integer idSch){
        this.idSch = idSch;
    }
    
    @ValueField(column = "id")
    public Integer getIdSch(){
        return this.idSch;
    }

    public void setCompanySch(String companySch){
        this.companySch = companySch;
    }
    
    @ValueField(column = "company")
    public String getCompanySch(){
        return this.companySch;
    }

    public void setPositionSch(String positionSch){
        this.positionSch = positionSch;
    }
    
    @ValueField(column = "position")
    public String getPositionSch(){
        return this.positionSch;
    }

    public void setPhoneSch(String phoneSch){
        this.phoneSch = phoneSch;
    }
    
    @ValueField(column = "phone")
    public String getPhoneSch(){
        return this.phoneSch;
    }

    public void setAddressSch(String addressSch){
        this.addressSch = addressSch;
    }
    
    @ValueField(column = "address")
    public String getAddressSch(){
        return this.addressSch;
    }

    public void setQqSch(String qqSch){
        this.qqSch = qqSch;
    }
    
    @ValueField(column = "qq")
    public String getQqSch(){
        return this.qqSch;
    }

    public void setWeixinSch(String weixinSch){
        this.weixinSch = weixinSch;
    }
    
    @ValueField(column = "weixin")
    public String getWeixinSch(){
        return this.weixinSch;
    }

    public void setDepartmentSch(String departmentSch){
        this.departmentSch = departmentSch;
    }
    
    @ValueField(column = "department")
    public String getDepartmentSch(){
        return this.departmentSch;
    }

    public void setAvatarSch(String avatarSch){
        this.avatarSch = avatarSch;
    }
    
    @ValueField(column = "avatar")
    public String getAvatarSch(){
        return this.avatarSch;
    }

    public void setBundleIdSch(String bundleIdSch){
        this.bundleIdSch = bundleIdSch;
    }
    
    @ValueField(column = "bundleId")
    public String getBundleIdSch(){
        return this.bundleIdSch;
    }

	/**
	 * @return the statusSch
	 */
	public String getStatusSch() {
		return statusSch;
	}

	/**
	 * @param statusSch the statusSch to set
	 */
	public void setStatusSch(String statusSch) {
		this.statusSch = statusSch;
	}

	 public void setIsLoginSch(Boolean isLoginSch){
	        this.isLoginSch = isLoginSch;
	 }
	    
    @ValueField(column = "is_login")
    public Boolean getIsLoginSch(){
        return this.isLoginSch;
    }

	/**
	 * @return the oldPwdSch
	 */
	public String getOldPwdSch() {
		return oldPwdSch;
	}

	/**
	 * @param oldPwdSch the oldPwdSch to set
	 */
	public void setOldPwdSch(String oldPwdSch) {
		this.oldPwdSch = oldPwdSch;
	}


	

}